//
//  ButtonBarItem.m
//  vlthat
//
//  Created by MC372 on 3/21/14.
//  Copyright (c) 2014 MC372. All rights reserved.
//

#import "ButtonBarItem.h"

@implementation ButtonBarItem

+(id)initWithButtonImage:(NSString*)imageName{
    @autoreleasepool {
        UIImage* locationImage = [UIImage imageNamed:imageName];
        CGRect frameLocation = CGRectMake(0, 0, locationImage.size.width, locationImage.size.height);
        UIButton *buttonCustom = [[UIButton alloc] initWithFrame:frameLocation];
        [buttonCustom setBackgroundImage:locationImage forState:UIControlStateNormal];
        [buttonCustom setShowsTouchWhenHighlighted:YES];
        return buttonCustom;
    }
}



@end
